else if($action=="addvlt")
{

if(!getplusses(getuid_sid($sid))>24)
    {
        echo "<card id=\"main\" title=\"Methos\">";
      echo "<p align=\"center\">";
      echo "Only 25+ plusses can add a vault item<br/><br/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
    }
  $viname = $_POST["viname"];
  $vilink = $_POST["vilink"];
  //$qut = $_POST["qut"];
  addonline(getuid_sid($sid),"Adding a vault item","");
  echo "<card id=\"main\" title=\"Methos\">";
      echo "<p align=\"center\">";
      $crdate = time();
      //$uid = getuid_sid($sid);
      $res = false;
      
      $ext = getext($vilink);
      if ($ext=="mp3" or $ext=="amr" or $ext=="wav") {
      $type = 1;
      }
      if ($ext=="jpg" or $ext=="gif" or $ext=="png" or $ext=="bmp") {
      $type = 2;
      }
      if ($ext=="jad" or $ext=="jar") {
      $type = 3;
      }
      if ($ext=="mpg" or $ext=="3gp") {
      $type = 4;
      }
      if((trim($vilink)!="")&&(trim($viname)!=""))
      {
      $res = mysql_query("INSERT INTO ibwf_vault SET uid='".$uid."', title='".mysql_escape_string($viname)."', pudt='".time()."', itemurl='".$vilink."', type='".$type."'");
      }
      if($res)
      {
        echo "<img src=\"images/ok.gif\" alt=\"O\"/>Item added Successfully";
      }else{
        echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
      }

      echo "<br/><br/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
      echo "</p>";
      echo "</card>";

}